package com.itheima.param;

public class testDemo2 {
    //引用数据类型是
    public static void main(String[] args) {
        int[] a = new int[]{10,20,30};
        System.out.println("修改之前"+ a[1]);
        change(a);
        System.out.println("修改之后" + a[1]);
    }

    public static void change(int[] arr){
        System.out.println("change方法中"+arr[1]);
        arr[1] =  100;
        System.out.println(arr[1]);

    }
}
